<!DOCTYPE html>
<html lang="en">
<head>
  <title>Document</title>
</head>
<body>
  <button>click me</button>
  <script type="text/javascript">
    document.querySelector('button').onclick = () => {
      location.href = 'index.html'
    }
  </script>
</body>
</html>
